package com.relax.no_xml.ignoreDependenceInterface.impl;

import com.relax.no_xml.ignoreDependenceInterface.A;
import com.relax.no_xml.ignoreDependenceInterface.B;
import com.relax.no_xml.ignoreDependenceInterface.C;
import lombok.Data;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.context.annotation.DependsOn;
import org.springframework.stereotype.Service;

@Data
@Service
@DependsOn("CImpl")
public class AImpl implements A {

	@Autowired
	private B b;

	@Autowired
	private C c;


	public void dependenceC(C c) {
		System.out.println("A 的实现类 触发 dependenceB");
	}

	@Override
	public void dependenceB(B b) {

	}
}
